<div class="form">

<?php
$form=$this->beginWidget('CActiveForm', array(
	'id'=>'exams-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note"><span class="required">*</span> 为必填.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'exams_name'); ?>
		<?php echo $form->textField($model,'exams_name',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'exams_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'exams_times'); ?>
		<?php echo $form->textField($model,'exams_times'); ?>
		<?php echo $form->error($model,'exams_times'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'exams_memo'); ?>
		<?php echo $form->textArea($model,'exams_memo',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'exams_memo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'exams_tests_id'); ?>
		<?php echo $form->dropDownList($model,'exams_tests_id',$this->getTestsArr()); ?>
		<?php echo $form->error($model,'exams_tests_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'exams_statuts'); ?>
		<?php echo $form->dropDownList($model,'exams_statuts',$model->getStateArr()); ?>
		<?php echo $form->error($model,'exams_statuts'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '提交' : '保存'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->